package com.xtm.exercise.utils.export;

import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ImportValidateErrException extends RuntimeException{
    Logger logger = LoggerFactory.getLogger(getClass());

    private String msgBody;
    public ImportValidateErrException(){}
    public ImportValidateErrException(String msgBody){
        super(msgBody);
        this.msgBody = "Exception:" + msgBody;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    public String getMsgBody() {
        return msgBody;
    }

    public void setMsgBody(String msgBody) {
        this.msgBody = msgBody;
    }
}
